﻿@using WebStore.Domain.Entities.Enum
@using WebStore.Web.App.Utility.Helpers
@model IEnumerable<string>
@if (HttpContext.Current.Request.IsAuthenticated)
{
    if (ViewBag.IsInRole(RoleType.Administrator))
    {
    <text>
        @Html.ActionLink("Manage orders","Orders","Admin", null, new { @class = "last-profile-category" })
    </text>
    }
    @Html.ActionLink("Profile", "Profile", "Account")
    @Html.ActionLink("Orders", "Orders", "Cart", null, new { @class = "last-profile-category" })
}
@Html.ActionLink("Products", "List", "Product")

@foreach (var category in Model)
{
    @Html.ActionLink(category, "List", "Product", new { @category = category, page = 1 }, new { @class = category == ViewBag.SelectedCategory ? "selected" : null })
}

